package com.pti.usermanager.service.api;

import com.pti.usermanager.dao.po.CompPo;
import com.pti.usermanager.web.dto.request.SaveCompRequest;
import com.pti.usermanager.web.dto.request.SaveDeptByCidAndDid;
import com.pti.usermanager.web.dto.request.UpdateCompRequest;
import com.pti.usermanager.web.dto.response.ResultResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: CompService
 * @Author: dongzhipeng
 * @Description: 单位业务层
 * @Date: 2019/1/18
 */
public interface CompService {
    /**
     * create by: mahuilin
     * description:单位详情接口
     * create time: 17:16 2019/1/26
     *
     * @Param: compId
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse findAllByComdId(Long compId);
    /**
     * create by: mahuilin
     * description:单位树结构接口
     * create time: 17:15 2019/1/26
     *
     * @Param:
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse findTreeByComp();
    /**
     * create by: mahuilin
     * description:根据单位名称查详情接口
     * create time: 17:18 2019/1/26
     *
     * @Param: compNm
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse findAll(String compNm);
    /**
     * create by: mahuilin
     * description:添加单位接口
     * create time: 17:21 2019/1/26
     *
     * @Param: saveCompRequest
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse saveComp(SaveCompRequest saveCompRequest);
    /**
     * create by: mahuilin
     * description:修改单位接口
     * create time: 17:21 2019/1/26
     *
     * @Param: updateCompRequest
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse updateComp(UpdateCompRequest updateCompRequest);
    /**
     * create by: mahuilin
     * description:删除单位接口
     * create time: 17:23 2019/1/26
     *
     * @Param: compId
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse delComp(Long compId);
    /**
     * create by: mahuilin
     * description:分配部门接口
     * create time: 17:23 2019/1/26
     *
     * @Param: deptId
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse saveDeptByCidAndDid(SaveDeptByCidAndDid saveDeptByCidAndDid);


}
